package Test;

public class main {
    public static void main(String[] args) {
        int num=0;
        int i=0;
        for (int j=100;j<=1000;j++){
            int sum=0;
            i=j;
            while (i!=0){
                num=i%10;
                sum+=(num*num*num);
                i=i/10;
            }
            if (sum==j){
                System.out.println("水仙花数"+j);
            }
        }
    }
}
